/**
 * 
 */
package cen5501c.common;

import static org.junit.Assert.*;

import java.util.List;

import org.junit.Test;

/**
 * @author Jiangyan Xu
 *
 */
public class CmdParserTest {

	/**
	 * Test method for {@link cen5501c.common.CmdParser#cmdToString(cen5501c.common.CmdBase)}.
	 */
	@Test
	public void testCmdToString() {
		fail("Not yet implemented");
	}

	/**
	 * Test method for {@link cen5501c.common.CmdParser#cmdFromString(java.lang.String)}.
	 */
	@Test
	public void testCmdFromString() {
		fail("Not yet implemented");
	}

	/**
	 * Test method for {@link cen5501c.common.CmdParser#extractOperation(java.lang.String)}.
	 */
	@Test
	public void testExtractOperation() {
		fail("Not yet implemented");
	}

	/**
	 * Test method for {@link cen5501c.common.CmdParser#extractArgList(java.lang.String)}.
	 */
	@Test
	public void testExtractArgList() {
		String str_to_test = "<FILE-LIST,4,\"14 Feb 2002 23:37:03 GMT\">\n"
				+ "file1.txt,c4d338af8376a5b2e418434b03a8dc0e,\"16 Sep 2003 19:17:53 GMT\",0,32\n"
				+ "file2.exe,e48da1acea1375e38b6b0879fc48611f,\"16 Sep 2003 19:15:51 GMT\",0,920\n"
				+ "file5.mp3,52942b3180f1f1c7dc4a449fc5125bb4,\"16 Sep 2003 19:20:12 GMT\",0,98\n"
				+ "paper.pdf,a433dccc9a58abd8b688f23ee2cac2fa,\"13 Oct 2003 13:47:14 GMT\",0,22\n";
		List<String> actual_args = CmdParser.extractArgList(str_to_test);
		assertEquals(3, actual_args.size());
	}

}
